/**
* ...
* @author Default
* @version 0.1
*/
//the idea is to get something like this happening...
// http://www.aurigma.com/Products/ImageUploader/OnlineDemo.aspx?ref=PC

package  {
	// for files located on local machine
	import flash.net.FileReference;
	import flash.net.FileReferenceList;

	// for manipulation of bitmaps
	import flash.display.Sprite;
	import com.adobe.images.JPGEncoder;
	import ResizeImage;

	//load bitmap import
	import flash.display.*;
	import flash.net.URLRequest;

	public class uploader extends Sprite {
		
		public function uploader() {
			var ldr:Loader = new Loader();
			var url:String = "test.jpg";
			var urlReq:URLRequest = new URLRequest(url);
			ldr.load(urlReq);
			addChild(ldr);
			trace("hi");
			var bmd:BitmapData;
			var bitmap:Bitmap = new Bitmap();
			bmd = ResizeImage.resizeIt(ldr,200,200); //obj,destw,desth
			bitmap.bitmapData = bmd;
			addChild(bitmap);
		
		}
		
	}
	
}